package com.aliang.shopping.model.po;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 商品分类表
 *
 * @TableName goodsType
 */
@TableName(value = "goods_type")
@Data
public class GoodsType implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
    /**
     * 数据Id,自增
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 分类名
     */
    @TableField(value = "name")
    private String name;

    /**
     * icon名
     */
    @TableField(value = "icon")
    private String icon;

    /**
     * 排序数字
     */
    @TableField(value = "order_num")
    private Integer orderNum;

    /**
     * 父Id
     */
    @TableField(value = "parent_id")
    private Long parentId;

    /**
     * 状态,0禁用，1正常
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;
    /**
     * 是否删除，0否，1是
     */
    @TableField(value = "is_delete")
    private Integer isDelete;
}